Why my form is saving data entered in it?