fixed login page SQL access and corrected permissions for header.inc