updating the validation for form