Moved card type detection to server