Fixed login errors