fixing RegisterEmailService class