fixed login problems