update after login