Checks user eligibility to vote.