Added error message to adding a post.