adding profile update functionality