You can do it by putting password as input type instead of text. It obscures the typed text. So, instead of , you can use .