Added fix for form_key
form_key was introduced in Magento 1.8 as a protection against XSS