correct validation on entityattribute