Add required validation to task form