Use entityEncoder to hash password