ECOM-369 added fix for registration api given to me by Will