added validation to question types