     (add-bidi-protection-wrapper
      routes
      :http-request-authenticator (new-session-based-request-authenticator :http-session-store (:http-session-store this))
-     :failed-authentication-handler (->BidiFailedAuthenticationRedirect (get-in (:protector this) [:handlers :get-handler]))))
+     :failed-authentication-handler (->BidiFailedAuthenticationRedirect (get-in (:login-form this) [:handlers :get-handler]))))
 
   NewUserCreator
   (add-user! [_ uid pw]

  (routes [this] ["" (vec (keep #(when (satisfies? BidiRoutesProvider %) (routes %)) (vals this)))])
  (context [this] (or
                   (first (keep #(when (satisfies? BidiRoutesProvider %) (context %))
                                ((juxt :protector :user-authenticator :http-session-store) this)))
                   ""))

  BidiRoutesProtector

;; authenticator and session store. Different constructors can build this
;; component in different ways.

(defrecord ProtectionSystem [login-form user-authenticator http-session-store]
  component/Lifecycle
  (start [this] (component/start-system this (keys this)))
  (stop [this] (component/stop-system this (keys this)))
