Refactored implementation of validation while adding new item to existing list.