Adds an optional errors map to allow custom error messages in dynamic defect submission forms.