Changed the if calls in spl/profile.php