fixed login errors