fix issue with twitter and facebook login