Only allow valid names.