Handle XHR on reset password #6141

s/status_code/xhr_status_code

This is actually status code for xhr.