--- a/trunk/GoogleContactsSync/ProxySettings.cs
+++ b/trunk/GoogleContactsSync/ProxySettings.cs
@@ -50,7 +50,7 @@
             get
             {
                 bool userNameIsValid = Regex.IsMatch(UserName.Text, @"^(?'id'[a-z0-9\\\/\@\'\%\._\+\s\-]+)$", RegexOptions.IgnoreCase);
-                bool passwordIsValid = Password.Text.Length != 0;
+                bool passwordIsValid = !string.IsNullOrEmpty(Password.Text.Trim());
                 bool AddressIsValid  = Regex.IsMatch(Address.Text, @"^(?'url'[\w\d#@%;$()~_?\-\\\.&]+)$", RegexOptions.IgnoreCase);
                 bool PortIsValid     = Regex.IsMatch(Port.Text, @"^(?'port'[0-9]{2,6})$", RegexOptions.IgnoreCase);