Validate number