add simple validation for the required name field + small JS refactoring and translation messages