fixed login upgrade