encrypt and insert of users is working