added comments to Cognito login flow