Save stateConfig, not mainConfig on successful login