Added the ability to log out.