here's what I would like to accomplish.

I have an input field for the users name and I have one for their password.
Now when they come onto the page I want to have the value for the username filed say "username" and the passwordfield should say "password". Then when the users focusses on the password input the input type should turn password so when they type their password it shows like "*******".

I someone understands what I'm trying to say

Thanks in advance,