Fixed issue with the login handling.
Merge pull request #2 from bstockus/development

Fixed issue with the login handling.