fixed email error. check for valid email message added