validationpage func. definitoon