Some error checking on field editing