Task:Validation code improvements and restructuring code for validation.js, including encapsulation of methods and exposing only the isValid, validate and initialize functions