Added optional validation of the class names added to CSS properties (off by default)