Created profile.php functions