How do I make sure the data doesn't clear when form is submitted?