on Submit error handling