3258 password policy fixes

#3258

1. Adds password_policy path to fix consecutive character count constraint
2. Fixes vsite register's javascript
3. Adds password_policy checks to vsite register.