validator must return the input value if it passes