handles mailer issues while adding new leave