Added Logout functionality