Now saves role_id during registration.