Sample add: fix some bugs with adding

* Don't add to collection if the input field is empty
* Clear input field after adding