Changed login system to work with the new Mojang one.