Modified that no authorized env is going error because of secret.email.