Setting CSRF token if it is not already set