Merge pull request #12 from updatezen/master

Fixed 3 issues with login widget
minor
improve error handling