use max instead of maxlength for number inputs