Switched to newer non-deprecated version of PasswordEncoder