SONAR-4959 Use correct attribute to validate text