Store people who has right to vote, and only allow those votes to count. Procedure and technical details are open to discussion.