divide alarm-box and use js to validate the form and submit the form with formData,something has to be tested about this formdata some problem may occur in the server side