An attempt at fixing the logout button.