Adding CSRF token, fixing variable not found notice.