État-civil, identité et élections