Fixed login/registration issues.