export function validation(element: HTMLElement, regex: RegExp) : HTMLElement