fixed the issue with the multiple input field validaiton