Add some error checking to front end for when data is missing