fixing login issue on homepage and a few bad include paths