fixed error where attempting to access profile.php without user id