Modified code to remove csrf token for testing purposes