Updates password handling for secure input