changed code for bad email