split oauth login/register/invitation cases and finish login&invitation cases