login system fixed, login via teacherlibrary or studentlibrary.

Use activeTeacher() or activeStudent() to get the student that is logged
in