Fixed the bug where the submit was not clearing the form info