Disable user registration with a config

Create an option to disable user registration.