Fix exception when using invalid username/PIN.
Merge pull request #1 from mrh-line/master

Fix exception when using invalid username/PIN.