update password hash function

update password hash function