added input validation for new items