Made PasswordHasher and PasswordValidator abstract classes instead of traits (simplifies Java integration)