Added new function to vote on a post