Fix the unreadable code in the password hasher. Some small cleanups.
Show good messages when password does not fulfil the policy.