fix logout/login. things seem to work.