Fixed the roles and login. It now actually logs in with right role, so teachers can do more than students. Tests to be added.