More work on functions: validator and page link generator