Fix broken createUser function
Implement getSession function
Refactor login method

to throw an exception if a suspended user tries to log in.