Dismiss dialog if mail address is invalid