corrected public key authentication