remove required attr when removing fields