Pass validation errors to frontend.