adds password type for password inputs