added customer to codes so they can register
fixed some issues with registration