added ability to log out once logged in