split the config and login js modules

getting ready for config