Add pattern to number field to only allow for numbers

This adds a pattern to the number field to only allow for numbers as requested by #384.