update function for by package, edit user info