add task validation