Fixed some bugs in the google auth implementation