changing input type from text to password