Made changes to check_entry_reason()  function to check if the traveller holds a visitor/transit visa if the country he/she is coming from requires them to hold one.