Add `as` namespace to validation error CSS class name

Everywhere else we use namespace CSS selectors with `as`. It makes sense to use
the namespace on `error` as well - especially since `error` is a commonly used
class name and thus there's a high likelihood that it could cause namespace
collisions.