added validations to tasks