Sets the form method
Removes csrf token if the method is get