added validation for items