index change: text to password input type