added social login logic