add public key to user model