added the ability to login and logout