Fix: use the correct ValidationError class