function checkUserNames(userName){
  for(var i = 0; i < userNameArr.length; i++){
    if(userName == userNameArr[i]){
      userNameBool = false;
    }
  }
}
//This function is called from the add and update functions. It checks to see if the chosen username already exists.
This function is called from the add and update functions. It checks to see if the chosen username already exists.
This function is called from the add and update functions . It checks to see if the chosen username already exists .
function checkUserNames(userName){
  for(var i = 0; i < userNameArr.length; i++){
    if(userName == userNameArr[i]){
      userNameBool = false;
    }
  }
}
function checkUserNames ( userName ) { for ( var i = 0 ; i < userNameArr . length ; i ++ ) { if ( userName == userNameArr [ i ] ) { userNameBool = false ; } } }
This function is called from the add and update functions.
This function is called from the add and update functions .