diff --git a/newLogin.html b/newLogin.html
index eb6e528a..a868a02c 100644
--- a/newLogin.html
+++ b/newLogin.html
@@ -139,6 +139,15 @@
Start your
journey now
validateForm("register");
});
+ //Form validation for registration name
+ document.getElementById("registerName").addEventListener("keypress", function (event) {
+ var char = String.fromCharCode(event.which);
+ if (!(/[a-zA-Z]/.test(char))) {
+ event.preventDefault();
+ }
+ });
+
+
document.getElementById("loginForm").addEventListener("submit", function (event) {
event.preventDefault();
validateForm("login");