Added a clear form method to the form class