Manual:$wgValidationForAnons

Details
If  is true, then this settings specifies whether it should also be used for anonymous editors.

If it is false then this setting is ignored.