login and logout support, with new google oauth 2 support