implemented password requirement for encryption and decryption