user update when edit, synchronize profiles, and log out