Update password_dialog.py

Added Password Strength check logic that gives more emphasis on length of the password.