Refactored validation function to accept an array; Fixed a bug in addValidator function