Update validator.js

Changes to accommodate radio button "required" testing.