Hi Juanita
Your code looks good… I’m taking a stab in the dark here, but I’ve experienced a similar problem where auto-approval for new members is turned off, I’d suggest check that first.
If the ID is created in the db then I doubt there’s a problem with your database permissions, but just in case, change permissions to ‘anyone’ right through and see if that works. If it does then you can tighten it up one by one form there…
Tiaan