[entity] implemented entity metadata validation