Handle XHR on reset password #6141

I will prefer validate_on_submit()

this will handle json data also