Add pages functionality vith validator.