removed the inputValidator.js file and included the working of inputValidator.js and navigator.js into one file