Fix the new password hash functions as pointed out by @ausi