working with validator formatting