Set the right-hand error icon and message when validation fails.