Validation

Added validation when adding a new item to prevent empty items from
being submitted.