finished update profile logic