Update api for password reset.