Auto-Enable User on Register

Hi there - 

I'm having a small problem with Elgg.....I can't get it to auto-enable users when they register. I've used a few different plugins to try to get around this, but nothing has worked.

Here's what happens. When a user registers with the site, they are redirected to the home page (with a login box) and the system displays a message saying they've successfully registered. When the user tries to login with their new username and password, they're automatically redirected back to the home page with login box again - no error message, no login, no nothing. It just won't log the user in.

Any ideas on how to fix this? 

I added modified this function from (elgg/actions/register.php) a little bit but it didn't work.

if (!$new_user->isAdmin()) {
// Now disable if not an admin
// Don't do a recursive disable.  Any entities owned by the user at this point
// are products of plugins that hook into create user and might need
// access to the entities.
$new_user->disable('new_user', false);
$new_user->enable();
}

Thanks,

Alex