fix auth and logout
Merge remote-tracking branch 'origin/master'