Bug fix login logic.
Adjust example.