added validation

Add & edit item