Fixed login bug finally!