fixed login problem