changed revalidate() to validate() on quizzes to make it work for mac
os. and changed teacher login to correctly check if the userID is a
teacher