debug, add logout functionality