Warning "undefined var form" fixed