Fix vsite register javascript #3258

Ability to create a site on behalf of new user was broken.
Make vsite register use password_policy #3258

It wasn't so simple as adding password_policy's validate function since our form has its own custom structure.