Finished login for students and teachers