Fix hashing of password