Added MetaData key validation to make sure the metadata is an recognised element.