Fixed updatePassword query