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).
Merge pull request #155 from luisromangz/8.5-SNAPSHOT-83464

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