Manual:$wgValidationForAnons

Details
If $wgUseValidation is true, then this settings specifies whether it should also be used for anonymous editors. If it is false then this setting is ignored.