Update validator.js

Added "requiredGroup" functionality. Still need to tie it into the validation process.