Adding csrf implementation
Adding security tests