debugging logout/login