Make server side validation match UI.