Validate input for questionnaire and question