Added validation for a datatime field in the metadata