Fixed bug with validation templates expecting number but being passed st...

...ring.
@rlucioni Fixes bug with templates expecting number but getting string