Use localized error message for email validator

Fixes #2364
fix inline javascript for address state elements

Fixes #2357