hotfix deprecated usage of ValidationError class