fixed login function (still no activationcode)