Migrate EXPECTED_CONFIG_VERSION constat to Config class
Minor code cleanup and remove render_login_form() global function