refactoring users_helper.rb, config/settings.yml