fixing crash on login for non-existant user