Added role check to registrationEmails API