add validate function and fetch user info by base o_auth