Mark invalid fields in the UI after form submission