added option to save pre-hashed passwords