Added the ability to login/logout