diff --git a/lib/python/vdm/static/js/vdm.ui.js b/lib/python/vdm/static/js/vdm.ui.js
index <HASH>..<HASH> 100644
--- a/lib/python/vdm/static/js/vdm.ui.js
+++ b/lib/python/vdm/static/js/vdm.ui.js
@@ -3365,13 +3365,27 @@ var loadPage = function() {
             e.stopPropagation()

             return;

         }

+        var role_with_space = $('#txtUserRole').val().split(',');

+        var roles = []

+

+        for(var i = 0; i < role_with_space.length; i++){

+            role_trim = role_with_space[i].trim()

+            if(role_trim.indexOf(' ') > -1){

+                $('#errorRole').show()

+                $('#errorRole').html('Only alphabets, numbers, _ and . are allowed.')

+                e.preventDefault()

+                e.stopPropagation()

+                return;

+            }

+            roles.push(role_trim)

+        }

 

+        role = roles.join()

         ShowSavingStatus();

 

         var username = $('#txtOrgUser').val();

         var newUsername = $('#txtUser').val();

         var password = encodeURIComponent($('#txtPassword').val());

-        var role = $('#txtUserRole').val();

         var requestType = "POST";

         var requestUser = "";

         var database_id = 0;
VDM-<I> Modified code to handle issue while starting VDM after adding
multiple user roles.