Standardize handling of form and field errors.