display properly errors on deleting