added validation to number