All Registrars and Sub-Registrars shall, while acting or purporting to act in pursuance of the provisions of the Act or any rule or order made there under, be deemed to be public servants within the meaning of S. 21 of the Indian Penal Code (45 of 1860)