Transmitting public key.
Clearing account data on invalid pin.
Added authentication verification in comments.