competency form multiple submit javascript issue fixed