Fix 'login failed message not appearing'