OK.
In this case I should remove "successRedirect" => "checkout.php?loggedIn=1", and let the "gotoPreviousURL" => TRUE, to take over. I am understanding you correctly? If they are going trough checkout the check out page will check and if they are login it will proceed if not it will kick in the login page.
Thank you