encrypt password when creating user.