handle error message on create