Fix a bug where if activity isnt null and allow login ui is true we get duplicate account provider.