fix bug where strings where being compared in validations rather than da...

...tes