pwdtoggle function.
cleanup.