update the system after loggin in