Validation to add task