Move all login/logout logic to the AccountModel