added before filter to pledges controller