Restructured is_user_in_org so that it only fetches user before query.