add validation constraint of a component