I am using react-router-dom redirect state to show redirected from the text on the login page if the user tries to access the protected route. It is working great but I am not a