Add required attribute to inputCheckbox