Added errors, create principal and modify (expire) principal