diff --git a/spaces_dashboard/spaces_dashboard.admin.inc b/spaces_dashboard/spaces_dashboard.admin.inc
index c545dc0..27ad611 100644
--- a/spaces_dashboard/spaces_dashboard.admin.inc
+++ b/spaces_dashboard/spaces_dashboard.admin.inc
@@ -26,12 +26,14 @@ function spaces_dashboard_add($form, &$form_state) {
  * Element validator for custom Dashboards.
  */
 function spaces_dashboard_add_validate($element, &$form_state) {
-  $value = trim($element['#value']);
+  if(isset($element['#value'])) {
+    $value = trim($element['#value']);
+  }  
   $key = end($element['#parents']);
   if ($key === 'custom-1' && empty($value)) {
     $form_state['values']['spaces_dashboard_custom'][$key] = t('Dashboard');
   }
-  else {
+  elseif(!empty($value)) {
     $form_state['values']['spaces_dashboard_custom'][$key] = $value;
   }
 }
