added color validator checks.