refactored check_id_map to validate_mapping_file