Redirect back to feedback submission page if isError==true when submitting responses #2300

Fixed webpage redirection from student home page to student feedback submission edit page when an user input error occurs.
`else` branch is much shorter than the `if` branch. Deal with the shorter branch first. i.e. pick the low hanging fruits first. It improves readability.