Add validation for privatekey-upload directive