writing profile.php