Minor fixes related to authentication.