add if to check for login providers length =0