Add custom static validation for password

Resolves #8