I use the ssr with the middleware my problem is that when I reload the page I am first redirected to the home page then redirected to my dashboard if the user token exists