added functionality for making a post.