fixed validation errors not returning gracefully