JC-1740 Added validation of contact length.