Fix crash during login with no mysql