Fixing issue with setting form method