added validation lines for digits rules.