basic validator rules
refactoring
indentation
fixed remove row
unit tests for controller.addItem() and validator.isValid()