Add validation for operation widget.