fix config file depending login condition