added most of the validation functions into quiz. not sure about Matching question