check fields with attribute required