add some entity validations