I have been facing issue with Magento registration, when ever when I try to checkout with new registration, I get an password mismatch error "Please make sure your passwords match."
whereas the password entered is correct, but still I get the mismatch error, because of this, the user is unable to register itself and checkout the order,

![enter image description here](https://i.stack.imgur.com/VJx9c.png)

The error I am getting in browser console is ,
![enter image description here](https://i.stack.imgur.com/0TcaG.png)

**Update:**
By default, when I click "Register" option in checkout step, the registration form shows saved username and password of some other page in "Fax" and "Passwords" fields. So I deleted it and typed new password. Then I tried to print the values of "pass.value" and "conf.value" before the line `"return (pass.value == conf.value);"` in the file `/js/prototype/validation.js.` . But When I print the values I got "my saved password" in `pass.value` variable and "empty value" in `conf.value` variable.

How can I fix this problem ? 
Any help appreciated.