Update to increase security on emails controller