add basic support for validating EntityObjects on save and update