Check if value input is numeric