fixed login issues