Improve the login detection.
Merge branch 'master' of https://github.com/englishtown/CalabashMobileProject