Added validation for question and subquestions