works now. user can register