fix 500 when there are form validation errors