CSRF issue resolved