Specify the base for parseInt method.
Check if the values from the inputs are valid numbers.