user: fixup register
user: fixup register

User.find() returns an array of users found. If there are no
users, it might return an empty array. Thus, the "user" var
is set, even though there are no users found. Make sure
to check the length of the array first.

Wayneoween/hiv,Wayneoween/hiv