I don't see the problem with it. I'm a legal voter and don't mind swearing that I am. If you are an illegal and can be prosecuted for lying, seems okay to me.