Also remove and add required attribute.