tweaked the bad email logic