Refactored register_roles to require an actual user object, and made sure activation email has both the user id and activation codes