private key validation, aesthetic improvements