Validate post contents on submission.

chapter9-4