Added session state to homepage.php