Added new_post function to create a new blog post