Prevent invalid basic authentication.