Add add_identity method to teacher model