making id checks consistently case insensitive