Adding validation method to the Engine.