added possibility to validate parent kinds and string ids of keys