Revert "logout not working"

This reverts commit 6d2e175d61fd3983f97f734bc5f5e66b93ee59f7.