Added oauth logins and check login code