Hi there, i have a page, on that page is a button "share contact details". It just shows a form with JS, and the form has a normal behaviour ```php
public function createCustomCard(Request $request){
$data = $request->validate([
'name' => 'required',
'phone' => 'required',
'email' => 'required'
]);
//successful form submittion code will come here
return redirect()->back();
}``` it redirects back with the right errors, when fields are left empty, but what is a good way to check if there are any errors to send some sort of value back that automatically makes that popup form appear when you get redirected with errors?