Bug 1001497: User.login incorrectly returns id = 0 when the login or password is missing
r=dkl a=justdave