upvote and downvote works on front end
upvoting and downvoting functionality working in back-end