Modified form.js so that the errors are on the request available in the route