Started function to get CSRF token