prevent submission on incorrect