fixed bug where restock mongo would reroute to login if no user was logged in