Fix logic in doesuserexist