Fix password security validation

Fixes #65