some minor fixes

* redirect to main Reduction page on successful phot
* fixed error message so it properly escapes everything