Fixed login checking
Revert "Fixed login checking"

This reverts commit 4cdff70a2e85b9badf31ab0c6e700f9d9f39b47d.