fixing hidden field validation