diff --git a/src/freedombone-config b/src/freedombone-config
index 14404f806e580a98e93db434d3351f729f8bc7c9..5405039783197122cc5b60aad63d68b2dcef1802 100755
--- a/src/freedombone-config
+++ b/src/freedombone-config
@@ -1302,9 +1302,11 @@ function select_user {
     name=()
     for u in ${users_array[@]}
     do
-        i=$((i+1))
-        W+=($i "$u")
-        name+=("$u")
+        if [[ $(is_valid_user "$u") == "1" ]]; then
+            i=$((i+1))
+            W+=($i "$u")
+            name+=("$u")
+        fi
     done
 
     user_index=$(dialog --backtitle $"Freedombone Configuration" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel
index bdc0e3e0df8cbb2649224a9f464866dac1cda01f..03d13d01dc9d480ff801140321eb4bfb2251f0b3 100755
--- a/src/freedombone-controlpanel
+++ b/src/freedombone-controlpanel
@@ -396,9 +396,11 @@ function select_user {
     name=()
     for u in ${users_array[@]}
     do
-        i=$((i+1))
-        W+=($i "$u")
-        name+=("$u")
+        if [[ $(is_valid_user "$u") == "1" ]]; then
+            i=$((i+1))
+            W+=($i "$u")
+            name+=("$u")
+        fi
     done
 
     user_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)