update COMMAND; doing login and update info in both ends