Add error message and error CSS class for invalid edit form fields.