fixed database login