fix previous commit
better handling of form validation for varchar columns