Http dapatkan dengan looping kata sandi validasi tidak berfungsi

$scope.loginValidator = function() {

    for(var i = 0; i < $scope.userList.length; i++) {

      if ($scope.usernameInput == $scope.userList[i].LoginName && $scope.passwordInput == $scope.userList[i].Password) {
        $scope.feedback = 'Login Successful';
        return true; 
      };
    };
SAMER SAEID