Handle XHR on reset password #6141

```python
try:
    nereid_user, = cls.search(
        ...
except ValueError:
    cls.build_response('Invalid email address', render_template('reset-password.jinja'), 401
```