Added validation for metadata and date.