You should make it so there are two elections, the secondary and the primary.
The secondary election is when anyone can vote for anyone, and the two top voted people get to go on to the primary.
On the primary election, only those two people can be elected.
This will prevent it from being that more people will not vote for the president than do vote.