Update doc/providers/security.rst

Take 2 on sorting out the parenthesis in the registration code snippet.