Add basic error checking to CreatePost route.