Cutting uncontrolled immigration:
Many (most) EU countries have national ID cards and corresponding foreign resident cards.
Without an ID card:
- you can't work,
- don't get social security (which requires a SS number which you get when you can prove your identity with an ID card)
- don't...