added another check before login