seemed to have resolved the issue with the middleware authentication not working correctly