Changed to properly handle backspace when entering passwords