Added a profile update functionality