added login and update config