Handle XHR on reset password #6141

```python
if form.errors:
```