added logger for emailController