Fixes problem where password was still shown when log option was disabled.

Signed-off-by: Michel Verbraak <info@1st-setup.nl>