implemented downloading config from server when logging in