added data validation for pages, sections, and subjects