Setting max value of number field