check if value input is a number