Validates post contents when editing