Made changes to check_entry_reason()  function to handle invalid from_country entry