Add basic auth failure handling.