added type = number and pattern to the input fields