Added correct error messages on delete action