account loginWithProvider logic