Password validation extension

Extended password validation based on hooks and PasswordValidator interface.