Add check when call getIdentityObject in auth service