Fixing path on include and moving to top to allow cookies to be set before response is sent