Blog comment : add some security + refactor code