Fix hiding the error overlay in submit
Remove obsolete code