logging devise and email