Add input validation for tasks

If any required field doesn't have a valid value entered, a error message
shows up, the save button is disabled, and the field is highlighted with a
red border.

Change-Id: I9c378cb4118411dd7f57ce2273bfd96e7a6eb343