The galaxy velocity dispersion - X-ray temperature relation in galaxy clusters