Fixed bugs in SchoolManager and Login-Logout