Added the ability to logout