adding email endpoint