Developing Authentication with Cognito User Pool and JavaScript Apps