Handling Authentication in React with Context and Hooks