Witr Salaah

Q: In Deoband the Ulama say witr prayer in Kaaba is not valid and we need to repeat it as it remains due. Is this correct? Also, can one pray 1 or 3 or 5 rakats in witr?