Validate identifier names.