Adding a function to post comment