Using JS to add error messages to tasks

* add fail case to ajax object
* add complete tasks list
* reset form when save a new task