Added Logout functionality.