Initial attempt at validateCPT function.  Completely untested