I don't understand why "wife" has any legal bearing on this. What if it was a girlfriend? What if it was a friend? What if it was some random dude on reddit?
But conveniently, there's a legal document that establishes a relationship with your spouse, so that's really easy to find.
And so it's kind of an extra level of stupid for getting caught...