updated the effect after login