         (assoc-in [:credentials :password] nil)
         (assoc-in [:credentials :password2] nil))))
 
+
 (reg-event-db
   :auth-request-error
   (fn [app-state [_ result]]

          (assoc-in [:credentials :password2] nil)))
    ))


(reg-event-db
  :memories-load

  (pushy/start! history)
  (dispatch-sync [:initialize])
  (dispatch-sync [:auth-set-token (cookies/get :token nil)])
  (dispatch-sync [:auth-validate])
  (add-on-appear-handler "#load-trigger" #(dispatch [:memories-load-next]))
  (mount-components))