Added translations for form element error messages

The form element error messages are not translated. This fix solves the issue.