fixed invite with number, changed isNumber and added isDigit and checkNumber