move validation to federator.