add formmethod detect

fixes #1069