Nikkah advice needed plz

i dnt need to correct any names i just wanna knw that if the mullah says wrong names is nikkah still valid?