adding error emails