Added ability to login/logout