private function validateForm()
 {
     // The errors array will hold all validation errors discovered
     $errors = array();
     // Do validation --
     // Validate the file name
     $fileName = $this->pageState['pageName'];
     if (strlen($fileName) > 0) {
         // Make sure there are no illegal characters
         if (!File::isValidFilename($fileName)) {
             $errors[] = 'Your proposed page name contains characters that are not allowed. Please use letters and numbers only.';
         }
     } else {
         // No filename provided
         $errors[] = 'You must enter a page name. Please use letters and numbers only.';
     }
     // Return the errors array
     return $errors;
 }