Fixed login saving