store credentials with connection