added bad email error handling