Fixes the case where a password is not supplied.