Check the length of the IDs