adapt hex validator to new symfony validating procedure