Reseted the form after submit successfully.