I am trying to make a protected route. When there is no token in the Localstorage, it should be redirected back to the login page. For this, I created an array called dashbo