added mailer method to user controller