Add validations

Add validations to item insert and edit