latest login logic - oauth2, twitter, facebook and google