add error detection to cpw in create-user