validating when error body is null