If you are carrying a gun around, cops have every right to check to see if you have a licenses for that gun. It is not ID fishing. You don't want cops getting your name, then dont carry a gun simple as that. Why is it so bad if someone knows your name in the first place?