moving validation into configuration class