solved bug validate vs. delete