Fixes #83464 by launching the loginstatechanged event in the LoginWindow...

... when the user is logged out. Also we check if the user is admin so we don't show the local certificate window even if the user has authority (which he shouldn't).