check ID length