Add validations to metadata