Finally worked out the student/teacher/admin login thing