added angularjs csrf support for future use