fixes form validation : set required on function of tab