fixed bugs that arose from testing the google login with passport