Add dynamic and validation in two pages