added redirect on status 401 (unauthorized) to all forms that hit auth protected endpoints