added validation constraints to the metadata model