Do not populate user/pass when deselecting "remember"

Closes: #2059
remove lambdas
wordwrap
make state switch more readable
Merge remote-tracking branch 'kali/bug/deselect-remember' into develop