"Undefined variable: form" error fixed.