update function changeProfile in User model