Added pattern validation on input fields with defined pattern attribute