Added valid function to check if a saved data array is a valid insert row for the model