Form validation for targets and dashboard edit.