added validation in quiz