Improve error messages for invalid post creation