Code that checks identity