added validateColorAttribute