Added ability to logout