Updated yourprofile.php to cater for new User-class