Removed unnecessary logic to clear form.