What about the rest of the validation here? Technically you aren't checking if it's a whole number. Are you sure not doing this is fine?