BUGFIX: incorrect `hasVoted()`call now `canVote()`

With the new logic implemented, calling hasVoted() here no longer makes sense. Changed to canVote() which gives the user a lot more flexibility.