improve the validation handler error output