Client side error checking