Update validator.js

Updated inputTypes object to ignore the backspace character since it runs on the keypress event and not keyup/keydown events.