Logout debugged