Validate post contents on submission.