updating PasswordEncoder