Added the option of validating csrf token through custom http headers