Remove the new keyword. It is already a factory and fix the bug with form passed. THank you @cxj and Hamza Kubba