Add functionality to Logout button