modify config and add login server functions