Moving token checking into view decorator