made login return to the page that redirected us there via requireLogin or requirePrivilege