login works for admin,students, and teachers