Task validation.