line 82 sets the success redirect when the login form is used:
"successRedirect" => "login.php?loggedIn=1",
note: there are 2 instances of the Security assist authenticate user server behavior on the login page.
the first one is used when the login form is submited.
the second is used when autologin is enabled.
i see that you edit the redirect when auto login is enabled, that is at line 102:
"successRedirect" => "index.php",
but you did not edit the first behavior that is used when the login form is submitted.