Improving csrf implementation
Adding more csrf tests