Implementing AWS Cognito Authentication in a React Application