Updated registration form documentation

This patch updates the registration form documentation to use setDefaultOptions instead of the deprecated getDefaultOptions.