correction for checking valid visa condition