Fix not detecting absence of supplied password