Persistent Login using Cookies in React