Added uniqueness validation to Vote to have better code recording the vote
in the PostsController and the CommentsController.