Working on csrf check for posting vote.

Auth function is not playing along nicely, the error handler keeps being
called even though the server itself is returning 200