Fixed bug in ValidationException, removed unused imports.