update hashing method for password