added optional name support for validate_password