moved methods isUserLoggedIn() and getUserFromSession() to
UserController