Revert "fixed login and logout"

This reverts commit d5841af16897f968b39231014a14eda58c463b43.