update profile and log out