Add validation & formatting to task edit

Validation rules are now processed in real time and before
submitting the form.

Fixed formatting of the fields in the edit view.

This should conclude all the changes required to
close issue #11.