High Court: Govt officials cannot contest general elections