Fix auto login
Another auto-login fix