Fix redirect paths and error messages for submissions.