Added error handling for post creation error.