prevent input after form is submitted