validation functions generated from questions.json