diff --git a/bakery.module b/bakery.module
index 72a41bc..147ea37 100644
--- a/bakery.module
+++ b/bakery.module
@@ -756,7 +756,7 @@ function bakery_login_return() {
 
     if (!empty($cookie['data']['errors'])) {
       $errors = $cookie['data']['errors'];
-      if ($errors['incorrect-credentials']) {
+      if (!empty($errors['incorrect-credentials'])) {
         drupal_set_message(t('Sorry, unrecognized username or password.'), 'error');
       }
       elseif ($errors['name']) {
