created an exception when creating server account without a public key