added validation to add item button