It returns the userid. So 0 if not succesful! Fixed.