Check for validity in value