Add formatting to validation.