how to create a protected route with react-router-dom and storing response in local storage, so that when a user tries to open next time they can view their details again. After