Validate task priority