Move has-validation-errors? into helper namespace.