Check for valid language