Im trying to create a forgot password in my app with react, the api is working and its mailing me, but it dont redirect for where it should and trigger an error, here is my code