added error message on insert