diff --git a/html/submit.php b/html/submit.php
index e51900b..e8fcd15 100755
--- a/html/submit.php
+++ b/html/submit.php
@@ -101,15 +101,10 @@ if (isset($_REQUEST["username"]) && isset($_REQUEST["email"])) {
$message .= "
invalid email address. did you mean: " . htmlspecialchars($result["email"]) . "";
}
- if ($_REQUEST["sshkey"] == "") {
+ if ($_REQUEST["sshkey"] == "" || substr($_REQUEST["sshkey"], 0, 4) !== "ssh-") {
$message .= "ssh key required: please create one and submit the public key";
}
- if (mb_substr($_REQUEST["sshkey"], 0, 4) !== "ssh-") {
- $message .= "PUBLIC ssh key required: please create one and submit the public key";
-
- }
-
if ($message == "") { // no validation errors