added required attribute to FieldClass