Im not sure if this will help, but I would suggest to try going to the behaviours panel when login.php is open, open the SecurityAssist Authenticate User behaviour and ensure that the redirect option is unticked in the Redirect section for 'Go to previous URL (if it exists) and see if that helps.