typo error on setPasswordMode