moved opt login in core/config.c