How to protect publications with a password