form validation for questionnaire