Fixing bug, adding ValidationException class