password length cap fix
move constants outside handle
Merge pull request #843 from rp4/password-fix

password length cap fix