Remove unnecessary extra md5 import.
Check for a valid auth handler in HasConfiguredCredentials.

This fixes a bug where the no-op authentication handler was being loaded after
other plugins, causing the no-op handler to be chosen instead of the valid
credentials. This ensures we don't load the no-op handler unless no other valid
handlers exist.