Support auto login.