Adding constrains and restrictions to Identity model and identities db