fix logic error in password entropy UI