fixed current user update issue in localstorage