first iteration - not working
works now. user can register