routes/users.js: fix a bug preventing registration with phone/email only.