add user mail controller
refactoring mailer and session controller