Add validations for empty task