simplified logic for number validators