How can I get the form to keep the previous inputed data after I submit it?