Validate post contents when editing