fixCPT function working and slight update to validation client