added cc validation