Both user and password are cleared uncondtitionally. Added unit test 1621 to verify. Fixes #3423 Closes #3433