Updating import data and putting error check in place on page load