loop through all imput fields, get placeholder and pattern and validate