Added validation for Opacity