server side only validator
DRY while crossing the border