add validates for tasks