Change the logout functionality