Fix broken getSession function
Refactor login method

to return if a particular user is an administrator.