some changes in changeProfile.php