integrate 3rd party login functions into Newtemplate