added validator for identity property in entities