Fixed a deprecated $form method