I am going thru the same headache. I saw this site do it successfully though >>
http://store.bizmanualz.com/customer/help.php?section=userlogin
I am not sure what version of x-cart they have but I tried it with my 4.0.1 and it would not take.
Hopefully this might generate some ideas