linking user and identity automatically