Made a check if a identity exists.