Fix for csrf token code