Validate task title