Add error detection in Identity.cobind