reconnect logout functionality to the logout button.