ValidateInputForm = ({fields, t}) => {
    const errors = {};
    fields.forEach((field) => {
        const name = field.name;
        const fieldError = FormInputError({field, t});
        errors[name] = fieldError;
    });
    return errors;
}
Validate input fields
@param {Array} fields
@param {Function} t
@returns {Object} errors