Passed validation context into formatMessage function