Fixes password checking and user creation bugs.
Merge pull request #936 from bcipolli/password_issues

Fixes password checking and user creation bugs.