adding def to check server side authentication status, and to disable the private key if authentication is enabled