fixed session login issues and corrected formatDbResponse