Replaced the form_key and form_token functions with the FormKey class.