Metadata validation