Replace action_before_act_admin with filter_login_redirect_dest. That's more intuitive and it also fixes a bug where the login page was reloaded so the user had to login twice.