AutoLogin: Check the remote username against logged in user

fixes #6462