added metadata type validation feature