prevent a TypeError exception when no password is provided