Fixed regex check for valid number