added 3rd party login functionality to the templates