added validate_settings() in main.py