encrypt password when inserting new users