Only update password hash if the hash method has changed.