Fix the "login page is available if logged in" bug

![](http://media.giphy.com/media/arnoIjxmPq5PO/giphy.gif)