client side checks for password policy
Merge pull request #40 from txbits/viktor/password-checks

client side checks for password policy, fix #22