moved addValidation to work from constructor parameters