Added implementation to enforce password security policy