added structure/google oauth2 login logic