Added code for reg.html to get validatePass function to run on page.