Restrict input values to be numbers