Added logged in check.
Finished client.php, type.php, feature.php