Validation for addPage and deletePageController added