javascript Input validation pages add.html