creating provider connection once for every authentication attempt