Fix loginpage_hook() to use get_session_init_url if user has preferred IdP set