Fixed updateprofile.php and profile.class.php