This is an ajax form handler, so returning a redirect here does nothing.  It just weirdly returns a 302 to the ajax sender in the javascript, which will ignore it or throw an error.  What you need to return here is a json object with a status of the operation and any data you need to render the next step.