form validation for appointment forms