added ability to logout