function for visa validation added