Fixed login bug. Works now fine!