metadata template and data validation