controller/form validator - bug fix and enhancement

was using prop.('type') instead of attr for reading input types (prop
returns text, not 'number'), which resulted in some validation not
working right.

added support for number input type.