maybe maybe fixed infinite logout loop