This doesn't invalidate your nikah.
For a talaq to be correct has to have the following conditions:
1- You have to have two believing adults as your witness
2- The woman has to be clean of her menstrual period and also shouldn't be pregnant
3- Proper Arabic words need to be uttered for the act to take place.