Updated saveProfile function (added ProfileForm)