Logoutbutton uses logout() function