Prevent the flashing of the login screen by making sure we're both online and lacking a credential.
Add a friendlier 401 error.