Fix the validation for the form