length validations cross reference check