I changes $check variable to $userExist