Added clearForm function