Added a check to give an error on the settings page when "Anyone can register" is not enabled.