Updating resetPassword, trying another ajax handling