On the live and test system, nsg middleware breaks login if ran before bodyParser