add validation to list item input field