update identity logics