PR for dev_1.0

Noted po. Replaced the IF condition with:
return (isset($_SESSION["id"]))