added functionality to dynamically check if values are formatted properly by dynamically calling the appropriate isValid method on the userValidator class with tests