(Settings) Optimized implementation of validation

- Refactored translations to contain validation messages with variables to insert
- Optimized all validation code coinciding with optimized common.js validation code