add: add validation in opacity property.