Confirm password field - need it to show ****

I have a custom signup form for Members and have created a confirm password field (this is a user input field not attached to the form so the submission for this field isn’t saved, just used to validate password entry) to ensure correct password is entered when they are logging on for the first time - that all works perfectly.

However what I want to do is have the confirm password field to match the enter password field in as much as when the user enters their password, the display on the form is ***** (one for each keystroke) but the original keystroke is kept so it can match (or not).

Thanks to anyone that can help.

Same here anyone??