Fixed bug in viewprofile.php