update user object in rootScope