validate post contents when editing