added validation to append number function: