How can I restrict numeric input across multiple fields?