Updated index.php and profile.php