for #4 double checked that pattern attribute cannot be applied to text area so changed code to not apply pattern validation to fields that are not input tags