Checking if all ID are ok