I agree but I think that he meant Ahmed Shah Abdali and Nadir Shah instead of Ghauri and Ghaznavi. Guru Gobind Singh formed Khalsa in 1699. Nadir Shah and Ahmed Shah Abdali repeatedly in mid 1700s. Sikhs were known to have saved hundreds of women and wealth from invaders and would attack their armies in the midnight.