added and tested validations for list and task