Change hidden field to token method instead