type attribute added

I find this addition very helpful, in my case I needed a password input (which shows `*` instead of characters) and this is a very simple way to do this.