Implement auto login.