Fix for loginID rule calculation