Also validate when editing existing items (fixes #14)