fixed login stuff