Form validation for registration using ajax and laravel.