add cc validation code