Moved more code to the header.inc.php file, added session_start() at the top